<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$language}" lang="{$language}">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta http-equiv="content-language" content="$language" />
	<meta name="robots" content="noindex,nofollow" />
	<link rel="stylesheet" media="screen,projection" type="text/css" href="{$webDir}/templates/admin/css/reset.css" /> <!-- RESET -->
	<link rel="stylesheet" media="screen,projection" type="text/css" href="{$webDir}/templates/admin/css/main.css" /> <!-- MAIN STYLE SHEET -->
	<link rel="stylesheet" media="screen,projection" type="text/css" href="{$webDir}/templates/admin/css/2col.css" title="2col" /> <!-- DEFAULT: 2 COLUMNS -->
	<link rel="alternate stylesheet" media="screen,projection" type="text/css" href="{$webDir}/templates/admin/css/1col.css" title="1col" /> <!-- ALTERNATE: 1 COLUMN -->
	<!--[if lte IE 6]><link rel="stylesheet" media="screen,projection" type="text/css" href="{$webDir}/templates/admin/css/main-ie6.css" /><![endif]--> <!-- MSIE6 -->
	<link rel="stylesheet" media="screen,projection" type="text/css" href="{$webDir}/templates/admin/css/style.css" /> <!-- GRAPHIC THEME -->
	<link rel="stylesheet" media="screen,projection" type="text/css" href="{$webDir}/templates/admin/css/mystyle.css" /> <!-- WRITE YOUR CSS CODE HERE -->
	<script type="text/javascript" src="{$webDir}/templates/admin/js/jquery.js"></script>
	<script type="text/javascript" src="{$webDir}/templates/admin/js/switcher.js"></script>
	<script type="text/javascript" src="{$webDir}/templates/admin/js/toggle.js"></script>
	<script type="text/javascript" src="{$webDir}/templates/admin/js/ui.core.js"></script>
	<script type="text/javascript" src="{$webDir}/templates/admin/js/ui.tabs.js"></script>
	{literal}<script type="text/javascript">
	$(document).ready(function(){
		$(".tabs > ul").tabs();
	});
	</script>{/literal}
        <title>{$adminTitle}</title>
</head>

<body>

<div id="main">

	<!-- Tray -->
	<div id="tray" class="box">

		<p class="f-left box">

			<!-- Switcher -->
			<span class="f-left" id="switcher">
				<a href="#" rel="1col" class="styleswitch ico-col1" title="Display one column"><img src="{$webDir}/templates/admin/design/switcher-1col.gif" alt="1 Column" /></a>
				<a href="#" rel="2col" class="styleswitch ico-col2" title="Display two columns"><img src="{$webDir}/templates/admin/design/switcher-2col.gif" alt="2 Columns" /></a>
			</span>

			{$cmsName}: <strong>{$administration}</strong>

		</p>

		<p class="f-right">{$user} <strong><a href="{$webDir}/admin/admins/password/">{$admin}</a></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><a href="{$webDir}/event/admin/logout/" id="logout">{$logOut}</a></strong></p>

	</div> <!--  /tray -->

	<hr class="noscreen" />

	<!-- Menu -->
	<div id="menu" class="box">

		<ul class="box f-right">
			<li><a href="{$webDir}/"><span><strong>{$visitSite}</strong></span></a></li>
		</ul>

		<ul class="box">
			<li{if $topMenuActive === 0} id="menu-active"{/if}><a href="{$webDir}/admin/"><span>{$pages}</span></a></li> <!-- Active -->
			<li{if $topMenuActive === 1} id="menu-active"{/if}><a href="{$webDir}/admin/menu/"><span>{$menu}</span></a></li>
			<li{if $topMenuActive === 2} id="menu-active"{/if}><a href="{$webDir}/admin/admins/"><span>{$admins}</span></a></li>
		</ul>

	</div> <!-- /header -->

        <div id="single-col-submenu">
            <ul>
                {section name=submenu loop=$submenu}
                    <li{if $submenu[submenu].active} id="submenu-active"{/if}>
                        <a href="{$submenu[submenu].link}">{$submenu[submenu].label}</a>
                    </li>
                {/section}
            </ul>
        </div>
        
	<hr class="noscreen" />

	<!-- Columns -->
	<div id="cols" class="box">

		<!-- Aside (Left Column) -->
		<div id="aside" class="box">

			<div class="padding box">

				<!-- Logo (Max. width = 200px) -->
				<p id="logo"><a href="http://code.google.com/p/winterbreath/"><img src="{$webDir}/templates/admin/design/logo.png" alt="Our logo" title="Visit Site" /></a></p>

				<!-- Search -->
				<form action="{$webDir}/admin/" method="post" id="search">
                                    <input type="hidden" name="mode" value="event" />
                                    <input type="hidden" name="inAdmin" value="1" />
                                    <input type="hidden" name="event" value="search" />
					<fieldset>
						<legend>{$search}</legend>

						<p><input type="text" size="17" name="search" class="input-text" />&nbsp;<input type="submit" value="{$searchBtn}" class="input-submit-02" /><br />
						<a href="javascript:toggle('search-options');" class="ico-drop">{$advancedSearch}</a></p>

						<!-- Advanced search -->
						<div id="search-options" style="display:none;">

							<p>
								<label><input type="checkbox" name="pages" checked="checked" /> {$pages}</label><br />
								<label><input type="checkbox" name="menu" /> {$menu}</label><br />
								<label><input type="checkbox" name="admins" /> {$admins}</label>
							</p>

						</div> <!-- /search-options -->

					</fieldset>
				</form>

				<!-- Create a new project -->
				<p id="btn-create" class="box"><a href="{$webDir}/admin/pages/add/"><span>{$createNewPage}</span></a></p>

			</div> <!-- /padding -->

			<ul class="box">
                            {section name=submenu loop=$submenu}
                                <li{if $submenu[submenu].active} id="submenu-active"{/if}>
                                    <a href="{$submenu[submenu].link}">{$submenu[submenu].label}</a>
                                </li>
                            {/section}
			</ul>

		</div> <!-- /aside -->

		<hr class="noscreen" />

		<!-- Content (Right Column) -->
		<div id="content" class="box">

			<h2>{$currentHeading}</h2>

                        {if isset($warnings)}
                            {section name=warning loop=$warnings}
                                <p class="msg warning">{$warnings[warning]}</p>
                            {/section}
                        {/if}
                        {if isset($notices)}
                            {section name=notice loop=$notices}
                                <p class="msg info">{$notices[notice]}</p>
                            {/section}
                        {/if}
                        {if isset($confirms)}
                            {section name=confirm loop=$confirms}
                                <p class="msg done">{$confirms[confirm]}</p>
                            {/section}
                        {/if}
                        {if isset($errors)}
                            {section name=error loop=$errors}
                                <p class="msg error">{$errors[error]}</p>
                            {/section}
                        {/if}
			
			{if $template}
                        {include file="admin/$template.tpl"}
                        {/if}
		</div> <!-- /content -->

	</div> <!-- /cols -->

	<hr class="noscreen" />

	<!-- Footer -->
	<div id="footer" class="box">

		<p class="f-left">&copy; 2010-2012 <a href="http://is.muni.cz/osoba/208180">Martin Jurča</a>, All Rights Reserved &reg;</p>

		<p class="f-right">Templates by <a href="http://www.adminizio.com/">Adminizio</a></p>

	</div> <!-- /footer -->

</div> <!-- /main -->

</body>
</html>